home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 January: Mac OS SDK / Dev.CD Jan 00 SDK1.toast / Development Kits / Mac OS / Multiprocessing 2.0 SDK / Sample Code / SortPictsMP ƒ / SortPictsMP.doc < prev    next >
Encoding:
Text File  |  1999-08-03  |  2.1 KB  |  78 lines  |  [TEXT/CWIE]

  1.  
  2. SortPictsMP Demo  1/7/97
  3.  
  4.  
  5. History of SortPicts.
  6.  
  7. The original version was used to show off the Thread Manager it was
  8. written by Randy Thelen using the Sprockets Framework. So I take no
  9. credit (or blame) for the majority of the code.  The biggest step in
  10. using MP is getting your application threaded. Randy did all this work.
  11.  
  12. During the OS formally known as Copland time frame Paul Forrester
  13. modified the code to run under Copland and to show off the two machine
  14. debugger debugging multiple Copland tasks. So that is why you
  15. will see a lot of reference to Copland in the source code.
  16.  
  17. I took the code and made it more Copland friendly and got it ready to go
  18. out on the DR1 CD.
  19.  
  20. The DR1 CD never went out and the OS formally known as Copland, was cancelled.
  21.  
  22. Since then the new MP API has been released so I modified the code once again
  23. to use MP tasks instead of Copland tasks. This is what you see today.
  24.  
  25.  
  26. The program uses the Thread Manager or MP tasks to get some work done. It
  27. doesn't require MP or even multiple CPU's. It enables the "Use MP tasks"
  28. menu item if it can start an MP Task. 
  29.  
  30.  
  31. So what are the cool things that the SortPictsMP can do?
  32.  
  33.  
  34. 1. Live Window Dragging
  35.  
  36.     To give you the cool BeOS demo look, I enabled live window dragging
  37.     for MP task windows. This shows the Mac can preemptively multitask like the
  38.     rest of them. When you drag an MPTask window, the animation continues to 
  39.     run in the window while you are dragging it around the screen.
  40.     
  41. 2. Continues to run then the mouse button is down.
  42.    
  43.    The MP Task windows continue to run when you hold down the mouse button.
  44.   
  45. 3. Continues to run even when your in Macsbug
  46.  
  47.  If you drop into Macsbug the MPTasks continue to run. Ooooh Coool.
  48.  
  49.  
  50. Caveats
  51.  
  52. I didn't spend much time on the blitter so it's not a very good Mac citizen.
  53. If you move the app into the background the MPtask continues to blit
  54. to the screen right over anything else. Also it only supports 8 bit single
  55. monitor blitting. If I get more time I'll fix these things.
  56.  
  57. Matt
  58.  
  59. // 10/27/98 George Warner
  60. Added the CopyBlits code to support 8/16/32 bit screen depths.
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.